﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Entity;

namespace Avatar
{
    /// <summary>
    /// Interaction logic for OneCityEventEditor.xaml
    /// </summary>
    public partial class OneCityEventEditor : UserControl
    {
        public OneCityEventEditor()
        {
            InitializeComponent();
        }

        public void RefreshEditor(OneCityEvent oneCityEvent)
        {
            title.Content = oneCityEvent.Title;
            id.Content = oneCityEvent.ID;
            title2.Content = oneCityEvent.Title;
            startTime.Content = oneCityEvent.StartTime.ToShortDateString();
            endTime.Content = oneCityEvent.EndTime.ToShortDateString();
            location.Content = oneCityEvent.Location;
        }
    }
}
